<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core" 
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">
   
    <body>
        <div><h3>Unesite podatke da bi ste se ulogovali</h3></div>
        
        <h:messages styleClass="errorMessageBox" layout="table" style="color: red"/>
        <h:form>
            <div>
            <h:outputText value="Korisnicko ime:  " />
            <p:inputText id="Username" value="#{loginBean.username}" required="true"  />
            
            </div>
             <div>
            <h:outputText value="Lozinka:  " />
            <p:password value="#{loginBean.password}" required="true" requiredMessage="Morate uneti lozinku" />
            </div>
            
             <div>
                 <p:commandButton action="#{loginBean.attempLogin()}" value="Uloguj se" />
            </div>
            
            
            
        </h:form>
    </body>
</html>
